﻿using PLCSharp.CoreModel.Prism;
using Prism.Commands;
using Prism.Dialogs;
using Prism.Events;
using Prism.Ioc;
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PLCSharp.Views.Robots
{
    [Model]
    internal class RobotModel : ModelBase
    {
        public RobotModel(IContainerExtension container, IEventAggregator ea, IDialogService dialogService) : base(container, ea, dialogService)
        {
        }

        #region Robot
        private ObservableCollection< Robot> _Robots = [];

        public ObservableCollection< Robot> Robots
        {
            get { return _Robots; }
            set { SetProperty(ref _Robots, value); }
        }

        private  Robot _SelectRobot;
        /// <summary>
        /// 
        /// </summary>
        public  Robot SelectRobot
        {
            get { return _SelectRobot; }
            set { SetProperty(ref _SelectRobot, value); }
        }

        private DelegateCommand _RobotManage;
        public DelegateCommand RobotManage =>
            _RobotManage ??= new DelegateCommand(ExecuteRobotManage);

        void ExecuteRobotManage()
        {

        }
        #endregion
    }
}
